package com.zh.note.huawei.onehundred.报文重排序;

import java.util.Scanner;

/**
 * @Author: zhanghuan
 * @date: 2023/9/12 18:34
 * @description: create it
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] strings = sc.nextLine().split(" ");
        String[] res = new String[n];
        for (String string : strings) {
            if (!string.isEmpty()) {
                //截取出单词
                String content = string.substring(0, string.length() - 1);
                //截取出后缀数字
                String num = string.substring(string.length() - 1);
                int index = Integer.parseInt(num);
                res[index - 1] = content;
            }
        }

        for (String item : res) {
            System.out.print(item + " ");
        }
    }
}
